﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChiTietNV.aspx.cs"
    Inherits="ChamCong.Admin.ChiTietNV" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title></title>
    <!--Calendar Script-->
    <link type="text/css" rel="stylesheet" href="../Scripts/JSCal/css/jscal.css" />
    <link type="text/css" rel="stylesheet" href="../Scripts/JSCal/css/border-radius.css" />
    <script type="text/javascript" src="../Scripts/JSCal/js/jscal2.js"></script>
    <script type="text/javascript" src="../Scripts/JSCal/js/lang/vn.js"></script>
    <!--End Calendar-->
    <style type="text/css">
        .style1
        {
            width: 170px;
            font-weight: bold;
        }
        .style2
        {
            width: 250px;
        }
        .divcenter
        {
            width: 820px;
            margin: 5px;
        }
        .divleft
        {
            width: 400px;
            float: left;
            margin: 5px;
        }
        .divright
        {
            width: 400px;
            float: right;
            margin: 5px;
        }
    </style>
    <script type="text/javascript">
        function is_int() {
            var value = document.getElementById('txtCMND').value;
            if ((parseFloat(value) == parseInt(value)) && !isNaN(value)) {
                return true;
            } else {
                alert("Số CMND phải là số nguyên.");
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <sbc:sbcMsgBox ID="sbcMsgBox4" runat="server" UseJQuery="True" />
    <asp:Panel ID="Panel1" runat="server">
        <div>
        </div>
        <asp:UpdatePanel ID="ShowThongTin" runat="server">
            <ContentTemplate>
                <h2>
                    Chi Tiết Nhân Viên</h2>
                <div id="divShow">
                    <asp:ScriptManager ID="ScriptManager2" runat="server">
                    </asp:ScriptManager>
                    <div class="divcenter">
                        <table id="Table1" style="width: 820px">
                            <tr>
                                <td class="style1">
                                    Mã Nhân Viên:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblMaNV" runat="server"></asp:Label>
                                </td>
                                <td class="style1">
                                    Tên Nhân Viên:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblTenNV" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Ngày Sinh:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblNgaySinh" runat="server"></asp:Label>
                                </td>
                                <td class="style1">
                                    Giới Tính:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblGioiTinh" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Quốc Tịch:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblQuocTich" runat="server"></asp:Label>
                                </td>
                                <td class="style1">
                                    Số CMND:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblCMND" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Số Điện Thoại:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblSoDT" runat="server"></asp:Label>
                                </td>
                                <td class="style1">
                                    ĐC Email:
                                </td>
                                <td class="style2">
                                    <asp:Label ID="lblEmail" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Đ/C Thường Trú:
                                </td>
                                <td colspan="3">
                                    <asp:Label ID="lblThuongTru" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Đ/C Tạm Trú:
                                </td>
                                <td colspan="3">
                                    <asp:Label ID="lblTamTru" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="divcenter">
                        <div class="divleft">
                            <table id="Table2" style="width: 410px;">
                                <tr>
                                    <td class="style1">
                                        Trình Độ HV:
                                    </td>
                                    <td class="style2">
                                        <asp:Label ID="lblHocVan" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Loại Bằng Cấp:
                                    </td>
                                    <td class="style2">
                                        <asp:Label ID="lblBangCap" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Nơi Cấp:
                                    </td>
                                    <td class="style2">
                                        <asp:Label ID="lblNoiCap" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Bằng Cấp Khác:
                                    </td>
                                    <td class="style2">
                                        <asp:TextBox ID="txtXemBangCap" runat="server" Width="80%" Height="51px" AutoPostBack="True"
                                            TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="divright">
                            <table runat="server" id="tbThongTinCT" style="width: 400px">
                                <tr>
                                    <td class="style1">
                                        Ngày Vào Làm:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblNgayVaoLam" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Phòng Ban:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblPhongBan" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Loại Nhân Viên:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblLoaiNV" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Chức Vụ:
                                    </td>
                                    <td>
                                        <div>
                                            <asp:Label ID="lblChucVu" runat="server"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Lương Cơ Bản:
                                    </td>
                                    <td>
                                        <asp:Label ID="lblLuong" runat="server"></asp:Label>
                                        (VND)
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        Ngày phép thường niên:
                                    </td>
                                    <td>
                                        <asp:Label ID="lbNgayPhep" runat="server"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="EditThongTin" runat="server">
            <ContentTemplate>
                <div id="divEdit">
                    <div>
                    </div>
                    <div class="divcenter">
                        <table id="thongtincanhan" style="width: 720px">
                            <tr>
                                <td class="style1">
                                    Mã Nhân Viên:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtMaNV" runat="server" Width="80%"></asp:TextBox>
                                </td>
                                <td class="style1">
                                    Tên Nhân Viên:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtHoTen" runat="server" Width="80%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Ngày Sinh:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtNgaySinh" runat="server" Width="80%"></asp:TextBox>
                                    <script type="text/javascript">
                                        Cal = new Calendar({
                                            inputField: "txtNgaySinh",
                                            dateFormat: "%d/%m/%Y",
                                            trigger: "txtNgaySinh",
                                            bottomBar: false,
                                            onSelect: function () { this.hide(); }
                                        });
                                    </script>
                                </td>
                                <td class="style1">
                                    Giới Tính:
                                </td>
                                <td class="style2">
                                    <asp:DropDownList ID="drGioiTinh" runat="server">
                                        <asp:ListItem Value="Nam">Nam</asp:ListItem>
                                        <asp:ListItem Value="Nữ">Nữ</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Quốc Tịch:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtQuocTich" runat="server" Width="80%"></asp:TextBox>
                                </td>
                                <td class="style1">
                                    Số CMND:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtCMND" runat="server" Width="80%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Số Điện Thoại:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtSoDT" runat="server" Width="80%"></asp:TextBox>
                                </td>
                                <td class="style1">
                                    ĐC Email:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="80%"></asp:TextBox><span id="Emailer"
                                        style="color: #FF0000; font-size: 14px"></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Đ/C Thường Trú:
                                </td>
                                <td colspan="3">
                                    <asp:TextBox ID="txtThuongTru" runat="server" Width="500px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Đ/C Tạm Trú:
                                </td>
                                <td colspan="3">
                                    <asp:TextBox ID="txtTamTru" runat="server" Width="500px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <%--<div class="divleft">
                <table id="thongtindangnhap" style="width: 100%;">
                    <tr>
                        <td class="style3">
                            Tên Đăng Nhập:
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtTenDangNhap" runat="server" Width="80%" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Mật Khẩu:
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtMatKhau1" runat="server" Width="80%" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            Mật Khẩu(nhập lại):
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtMatKhau2" runat="server" Width="80%" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                </table>--%>
                </div>
                <div style="width: 850px;">
                    <div class="divright">
                        <table runat="server" id="thongtincongty" style="width: 400px">
                            <tr>
                                <td class="style1">
                                    Ngày Vào Làm:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNgayVaoLam" runat="server" Width="80%"></asp:TextBox>
                                    <script type="text/javascript">
                                        Cal = new Calendar({
                                            inputField: "txtNgayVaoLam",
                                            dateFormat: "%d/%m/%Y",
                                            trigger: "txtNgayVaoLam",
                                            bottomBar: false,
                                            onSelect: function () { this.hide(); }
                                        });
                                    </script>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Phòng Ban:
                                </td>
                                <td>
                                    <asp:DropDownList ID="drPhongBan" runat="server" Width="70%" DataSourceID="DSPhongBan"
                                        DataTextField="TenPB" DataValueField="MaPB">
                                    </asp:DropDownList>
                                    <asp:ObjectDataSource ID="DSPhongBan" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.PhongBanBLL">
                                    </asp:ObjectDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Loại Nhân Viên:
                                </td>
                                <td>
                                    <asp:DropDownList ID="drLoaiNV" runat="server" Width="70%" DataSourceID="TatCaLoaiNV"
                                        DataTextField="TenLoaiNV" DataValueField="MaLoaiNV">
                                    </asp:DropDownList>
                                    <asp:ObjectDataSource ID="TatCaLoaiNV" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.LoaiNVBLL">
                                    </asp:ObjectDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Chức Vụ:
                                </td>
                                <td>
                                    <div align="left" style="width: 80%; height: 100px; overflow: auto; background-color: #F2F2F2;">
                                        <asp:CheckBoxList ID="cblChucVu" runat="server" DataSourceID="DSChucVu" DataTextField="TenCV"
                                            DataValueField="MaCV">
                                        </asp:CheckBoxList>
                                        <asp:ObjectDataSource ID="DSChucVu" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.ChucVuBLL">
                                        </asp:ObjectDataSource>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Lương Cơ Bản:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLuongCoBan" runat="server" Width="70%"></asp:TextBox>(VND)
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Ngày phép thường niên:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNgayPhep" runat="server" Width="70%"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="divleft" style="float: left">
                        <table id="thongtinhocvan" style="width: 400px;">
                            <tr>
                                <td class="style1">
                                    Trình Độ HV:
                                </td>
                                <td class="style2">
                                    <asp:DropDownList ID="drHocVan" runat="server" Width="30%">
                                        <asp:ListItem Value="12/12">12/12</asp:ListItem>
                                        <asp:ListItem Value="11/12">11/12</asp:ListItem>
                                        <asp:ListItem Value="10/12">10/12</asp:ListItem>
                                        <asp:ListItem Value="9/12">9/12</asp:ListItem>
                                        <asp:ListItem Value="8/12">8/12</asp:ListItem>
                                        <asp:ListItem Value="7/12">7/12</asp:ListItem>
                                        <asp:ListItem Value="6/12">6/12</asp:ListItem>
                                        <asp:ListItem Value="5/12">5/12</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Loại Bằng Cấp:
                                </td>
                                <td class="style2">
                                    <asp:DropDownList ID="drBangCap" runat="server" Width="70%" DataSourceID="DSBangCap"
                                        DataTextField="TenBangCap" DataValueField="MaBangCap">
                                    </asp:DropDownList>
                                    <asp:ObjectDataSource ID="DSBangCap" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.BangCapBLL">
                                    </asp:ObjectDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Nơi Cấp:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtNoiCap" runat="server" Width="80%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    Bằng Cấp Khác:
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="txtBangCapKhac" runat="server" Width="80%" Height="51px" AutoPostBack="True"
                                        TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <table>
            <tr align="center" style="width: 850px;">
                <td>
                    <div class="divcenter">
                        <asp:Button class="button" ID="btnSua" runat="server" Text="Chỉnh Sửa" Width="100px"
                            OnClick="btnSua_Click" />
                        <asp:Button class="button" ID="btnUpdate" runat="server" Text="Sửa" Width="100px"
                            OnClick="btnUpdate_Click" />
                        <%-- <asp:Button class="button" ID="btnXoa" runat="server" Text="Xóa" Width="100px" OnClick="btnXoa_Click" Visible="false" />--%>
                        <asp:Button class="button" ID="Button1" runat="server" OnClick="Button1_Click" Text="Quay lại" />
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
